Is this possible somehow in C# : if (a==b==c==d) {...}

Posted by burak ozdogan on Stack Overflow See other posts from Stack Overflow or by burak ozdogan
Published on 2010-04-30T09:01:17Z Indexed on 2010/04/30 9:07 UTC
Read the original article Hit count: 322

Filed under:
|
|
|

Hi,

Is there a quick way to compare equality of more than one values in C#?

something like:

if (5==6==2==2){

//do something

}

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about operators